package com.zijie.members.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("member_address") // 对应的数据库表：会员收货地址表
public class MembersAddress {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; // 主键

    @TableField("member_id")
    private Integer memberId; // 会员编号

    @TableField("receiver")
    private String receiver; // 收货人姓名

    @TableField("phone")
    private String phone; // 手机号

    @TableField("addr_id")
    private Integer addrId; // 街道编号，关联视图v_street

    @TableField("addr_detail")
    private String addrDetail; // 地址详情

    @TableField("is_default")
    private Boolean isDefault; // 是否默认地址

}
